package com.example.testapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Activity_h5 extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_h5);
        findViews();
    }
    private Button btnJavaAndJs;
    private Button btnJsCallJava;
    private Button btnJsCallPhone;


    private void findViews() {
        btnJavaAndJs = (Button)findViewById( R.id.btn_java_and_js );
        btnJsCallJava = (Button)findViewById( R.id.btn_js_call_java );
        btnJsCallPhone = (Button)findViewById( R.id.btn_js_call_phone );

        btnJavaAndJs.setOnClickListener(this);
        btnJsCallJava.setOnClickListener(this);
        btnJsCallPhone.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        if(view == btnJavaAndJs){
            Intent intent = new Intent(this,JavaAndJSActivity.class);
            startActivity(intent);
        }else if(view == btnJsCallJava){
            Intent intent = new Intent(this,JsCallJavaVideoActivity.class);
            startActivity(intent);
        }else if(view == btnJsCallPhone){
            Intent intent = new Intent(this,JsCallJavaCallPhoneActivity.class);
            startActivity(intent);
        }

    }
}